<div class="purchases form">
<?php echo $form->create('Purchase');?>
	<fieldset>
 		<legend><?php __('Edit Purchase');?></legend>
	<?php
		echo $form->input('id');
		echo $form->input('to');
		echo $form->input('description');
		echo $form->input('category_id');
		echo $form->input('amount');
		echo $form->input('date');
		echo $form->input('payment_type_id');
	?>
	<?php echo $form->end('Submit');?>
	</fieldset>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Delete Purchase', true), array('action'=>'delete', $form->value('Purchase.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Purchase.id'))); ?></li>
	</ul>
</div>
